package com.lx.zxs.service.impl;


import com.lx.zxs.entity.Video;
import com.lx.zxs.mapper.bVideoMapper;
import com.lx.zxs.service.bVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BVideoServiceImpl implements bVideoService {
    @Autowired
    bVideoMapper bVideoMapper;

    @Override
    public List<Video> queryVideoByParms(String keyWords, Integer id) {
        return bVideoMapper.queryVideoByParms(keyWords,id);
    }

    @Override
    public int insertVideo(Video video) {
        return bVideoMapper.insertVideo(video);
    }

    @Override
    public int updateVideo(Video video) {return bVideoMapper.updateVideo(video);}

    @Override
    public int delVideo(int id) { return bVideoMapper.delVideo(id);}

}
